package com.slipper.sfts.stock;

import com.slipper.common.util.ResultUtil;
import com.slipper.sfts.api.stock.bo.StockOrderBO;
import com.slipper.sfts.api.stock.service.IStockOrderSv;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/stockOrder")
public class StockOrderController {
    @Resource
    private IStockOrderSv stockOrderSv;

    @PostMapping(value = "/queryPage")
    public String queryPage(@RequestBody StockOrderBO bo) {
        return ResultUtil.toJson(stockOrderSv.queryPage(bo));
    }
}
